package com.pithypan.common;

/**
 * 常量集
 */
public class Constants {

    public static final String CHECK_CODE_KEY = "check_code_key";             //图片验证码session  key
    public static final String CHECK_CODE_KEY_EMAIL = "check_code_key_email"; //申请邮箱验证码的图片验证码session  key

    public static final Integer LENGTH_5 = 5;                                 //生成验证码的位数

    public static final String REDIS_KEY_SYS_SETTING = "pithypan:syssetting:";//缓存入redis中的邮件模板key
    public static final String REDIS_KEY_USER_SPACE_USE = "pithypan:userspace:";//缓存入redis中的用户空间信息key

    public static final String SESSION_KEY = "session_key";                   //登陆的用户信息session key
    public static final String SESSION_SHARE_KEY = "session_share_key_";      //已提取的分享文件信息session key

    public static final String REDIS_KEY_USER_FILE_TEMP_SIZE = "pithypan:user:filetemp:";//暂存区的上传文件的大小

    public static final String TS_NAME = "index.ts";                          //视频文件切割时生成的.ts文件名
    public static final String M3U8_NAME = "index.m3u8";                      //视频文件切割时生成的.m3u8文件名

    public static final String ZERO_STR = "0";                                //用户上传文件时的根目录统一id

    public static final Integer LENGTH_50 = 50;                               //下载文件的code长度
    public static final String REDIS_KEY_DOWNLOAD = "pithypan:download:";     //下载文件的key
    public static final Integer REDIS_KEY_FIVE_MIN = 60 * 5;                  //下载文件在redis的存活时间
}
